﻿package net.wangit.jdbc.sqltype;

import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import net.wangit.jdbc.JDBCException;

/**
 * SQL数据类型接口
 * 
 * @author watson
 * Feb 12, 2010
 */
public interface SqlType extends Serializable {

	public abstract String get(ResultSet resultset, String s)
			throws SQLException, JDBCException;

	public abstract void set(PreparedStatement preparedstatement, String s,
			int i) throws SQLException;

	public abstract int sqlType();
}
